<html>
  <head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body class="tundra">
    <script>
    var dojoConfig = {
	async:true,
	  paths: {
	    "rforms/rforms": "http://rforms.googlecode.com/files/rforms2"
	  }
    };
   </script>

    <script src="http://ajax.googleapis.com/ajax/libs/dojo/1.8.3/dojo/dojo.js" type="text/javascript"></script>
	<script type="text/javascript" src="testdata.js"></script>

	<style>
		@import "http://ajax.googleapis.com/ajax/libs/dojo/1.8.3/dijit/themes/tundra/tundra.css";
		@import "http://rforms.googlecode.com/svn/trunk/src/rforms/view/resources/rforms.css";
	</style>
    
	<script type="text/javascript">
	  require(['rforms/rforms'], function() {
	     require(['rforms/template/ItemStore', 
	              'rforms/apps/Validator'
                ], function(ItemStore, Validator) {
	             var itemStore = new rforms.template.ItemStore();
	 	     itemStore.createTemplate(testdata.templateSrc);
		     new Validator({itemStore: itemStore, type2template: {"http://xmlns.com/foaf/0.1/Document": "testTemplate"}, rdfjson: testdata.rdfSrc}, "container");
		});
          });
	</script>
	<div id="container"></div>
  </body>
</html>
